package org.orz.cloud.common.exception;

/**
 * 通用错误码枚举，同时也是{@link ErrorCode}的使用示例
 */
public enum SystemErrorCode implements ErrorCode{
    SERVER_ERROR("500","服务异常"),
    BUSINESS_ERROR("999","业务异常"),
    ;

    private String code;

    private String message;

    SystemErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
